
$("ul.layui-nav-tree-orgincon li").on("click",function(e){
	let str = $(this).find("img").attr("src");
	let str1 = str.substring(0,str.lastIndexOf("."));
	if(str.indexOf("_cur") != -1){
		
	}else{
		$(this).find("img").attr("src",str1+"_cur.png");
		$(this).siblings().find("img").each(function(){
			let str2 = $(this).attr("src");
			if(str2.indexOf("_cur") != -1){
				$(this).attr("src",str2.replace("_cur",""));
			}
		})
	}
})

$("ul.layui-nav-tree-orgincon dd.layui-this").on("click",function(e){
	$("ul.layui-nav-tree-orgincon li").each(function(i,v){
		let img = $(this).find("img");
		let src = img.attr("src");
		$(img).attr("src",src.replace("_cur",""))
	}) 
})